#include "AudioDevice.hpp"

AudioDevice::AudioDevice(const PaDeviceInfo *i, int index) {
    info=*i;
    paIndex=index;
    available=i->maxOutputChannels>0;
}

int AudioDevice::getPaIndex() {return paIndex;}
bool AudioDevice::isAvailable() {return available;}
QString AudioDevice::getName() {return info.name;}
unsigned int AudioDevice::getChannels() {return (unsigned int)info.maxOutputChannels;}
